Skip to content

Conversation

stefan-mysten
Copy link
Contributor

@stefan-mysten stefan-mysten commented Sep 14, 2024

Description

Added a new function execute_tx that is used only in the CLI that uses WaitForEffectsCert instead of WaitForLocalExecution to align with the deprecation of waiting for local execution.
Also added the polling for transaction like in https://github.com/MystenLabs/sui/pull/18996/files

Test plan

Existing tests.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI: The CLI switched to using WaitForEffectsCert in the quorum driver for transaction execution. As a result, it uses polling to simulate WaitForLocalExecution.
  • Rust SDK:
  • REST API:

@stefan-mysten stefan-mysten requested review from a team and lxfind September 14, 2024 00:19
@stefan-mysten stefan-mysten self-assigned this Sep 14, 2024
Copy link

vercel bot commented Sep 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 6:52pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 17, 2024 6:52pm

@stefan-mysten stefan-mysten force-pushed the sdk_fix_local_execution branch from e45e24c to 0b9f129 Compare September 14, 2024 03:14
@stefan-mysten stefan-mysten changed the title [Rust SDK] Switch to WaitForEffectsCert for execute_transaction_may_fail [Rust SDK] Switch to WaitForEffectsCert for CLI Sep 14, 2024
@stefan-mysten stefan-mysten changed the title [Rust SDK] Switch to WaitForEffectsCert for CLI [cli] Switch to WaitForEffectsCert for CLI Sep 16, 2024
@stefan-mysten stefan-mysten force-pushed the sdk_fix_local_execution branch 2 times, most recently from 0e69c51 to bc38d69 Compare September 16, 2024 21:03
@stefan-mysten stefan-mysten force-pushed the sdk_fix_local_execution branch from 34fc502 to 8b39980 Compare September 17, 2024 18:47
@stefan-mysten stefan-mysten merged commit bf86ff9 into MystenLabs:main Sep 17, 2024
43 of 44 checks passed
@stefan-mysten stefan-mysten deleted the sdk_fix_local_execution branch September 17, 2024 21:28
stefan-mysten added a commit to stefan-mysten/sui that referenced this pull request Sep 17, 2024
stefan-mysten added a commit that referenced this pull request Sep 17, 2024
## Description 

This reverts PR #19375. Unclear how to handle `waitForLocalExecution` in
the CLI for now.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants